<?php
! defined ( "ROOT_PATH" ) && exit ( 'No direct script access allowed' );
/**
 * weshuo microblog platform
 * @copyright  (c) 2010-2011 weshuo team http://www.weshuo.org
 * @license  The Mozilla Public License (MPL 1.1)
 * @author iceweb
 */
define ( "WWW_PATH", substr ( $_SERVER ['PHP_SELF'], 1, stripos ( $_SERVER ['PHP_SELF'], "index.php" ) ) );


//===============================定义文件存放目录=========================================

define("WEB_ROOT", "/baoming/");

/**
 * 设置系统URL风格
 */
define("URL_MODE",1);

/**
 * 定义文件上传路径
 */
define ( "UPLOAD_PATH", ROOT_PATH . 'static/upload/' );
/**
 * 定义日志存放路径
 */
define ( "LOG_PATH", ROOT_PATH . 'static/log/' );

/**
 * 定义框架扩展路径
 */
define ( "SOURCE_EXT_PATH", ROOT_PATH . 'sourceExt/' );



//===========================载入基本类=================================================
/**
 * 载入输入类
 */
require_once BASE_PATH . 'library/init.class.php';
/**
 * 载入页面输出类
 */
require_once BASE_PATH . 'library/BaseEcho.class.php';
/**
 * 载入模版类
 */
require_once BASE_PATH . 'library/BaseTemplate.class.php';
/**
 * 载入URL函数类
 */
require_once BASE_PATH . 'library/BaseUrl.class.php';
/**
 * 载入控制器基类
 */
require_once BASE_PATH . 'library/BaseAction.class.php';

/**
 * 载入表单验证基本类
 */
require_once BASE_PATH . 'library/BaseFormCheck.class.php';
/**
 * 载入基本函数库
 */
require_once BASE_PATH . 'library/BaseFunction.php';

//============================应用系統的配置文件的载入==================================
/**
 * 载入基本类
 */
require_once APP_PATH . 'AppAction.php';

